﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Collections;
using Shpm.System.Db;
using Shpm.App.Commons.Db.Beans.Master;
using Shpm.App.Commons.Db.Beans.Inp;
using Shpm.App.Input.Bean;
using Shpm.App.Master.Bean;

namespace Shpm.App.Input.Dao
{
    public class SalesProcVisitingDao : ShpmBaseDao
    {
        public const string GET_PERSONVST_LIST = "PersonVst.PersonVstList";
        public const string FIND_BY_PERSONVST = "PersonVst.FindByPersonVst";
        public const string INSERT_PERSONVST = "PersonVst.VstIn";
        public const string UPDATE_PERSONVST = "PersonVst.UpdVst";
        public const string DEL_PERSONVST = "PersonVst.DelVst";
        public SalesProcVisitingDao()
        {
        }
        //一览画面读取数据
        public IList GetPersonVstList(SalesProcVisitingBean paramBean)
        {
            return base.QueryForList(GET_PERSONVST_LIST, paramBean);
            
        }
        //读取详细数据
        public SalesProcVisitingBean Load(SalesProcVisitingBean paramBean)
        {
            return (SalesProcVisitingBean)base.QueryForObject(FIND_BY_PERSONVST, paramBean);
        }
        //插入数据
        public Object InsertPersonVst(SalesProcVisitingBean paramBean)
        {
            return base.Insert(INSERT_PERSONVST, paramBean);
        }
        //更新数据
        public int UpdatePersonVst(SalesProcVisitingBean paramBean)
        {
            return base.Update(UPDATE_PERSONVST, paramBean);
        }
        //删除数据
        public int DeletePersonVst(SalesProcVisitingBean paramBean)
        {
            return base.Delete(DEL_PERSONVST, paramBean);
        }

    }
}